<template>
	<view class="s-flooter">
		<view class="s-flooter__safe">
			<view class="s-flooter-bar">
				<slot></slot>
			</view>
		</view>
	</view>
</template>
<script>
	//底部固定组件
	//@group 全局组件
	export default {
		name: 'flooter',
	};
</script>
<style lang="scss" scoped>
	.s-flooter {
		text-align: center;
		width: 100%;

		.s-flooter__safe {
			background: #fff;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 99;
			position: fixed;
			padding-bottom: 0 !important;
			padding-bottom: constant(safe-area-inset-bottom) !important;
			padding-bottom: env(safe-area-inset-bottom) !important;
		}

		.s-flooter-bar {
			padding-top: 9rpx;
		}
	}
</style>